package com.xh.echartsviewsystem.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Admins
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {

    private String code = "200";
    private String msg;
    private Object data;

    public Object successful(String msg, List<PersonInfo> persons){
        return  new Result(code,msg,persons);
    }
    public Object full(String code,String msg){
        return  new Result(code,msg,"发生错误");
    }
}
